import {RankType} from "../../core/enum"

Component({

    properties: {

    },

    data: {
		type: RankType.STUDY
    },

    methods: {
	    onSwitchType: function (event) {
	    	const type = event.currentTarget.dataset.type
		    this.setData({
			    type
		    })
		    this.triggerEvent('switchtype', {
		    	type
		    }, {
			    bubbles: true,
		    })
	    },

    }
})
